package caom.wangs.java8.streamDemo;

import caom.wangs.java8.entity.Member;
import caom.wangs.java8.entity.Order;
import caom.wangs.java8.pojo.Apple;

import java.util.ArrayList;
import java.util.List;

public class DataServer {
    public static List<Apple> appleStore = new ArrayList<>();
    public static List<Order> orderStore = new ArrayList<>();
    public static List<Member> memberStore = new ArrayList<>();

    static {
        appleStore.add(new Apple(1, "red", 100.32, "山东"));
        appleStore.add(new Apple(2, "red", 200.32, "河南"));
        appleStore.add(new Apple(3, "red", 300.32, "四川"));
        appleStore.add(new Apple(4, "green", 400.32, "浙江"));
    }


    static {
        orderStore.add(new Order(1, 1, "", 100.32));
        orderStore.add(new Order(2, 1, "", 100.32));
        orderStore.add(new Order(3, 2, "", 100.32));
        orderStore.add(new Order(4, 2, "", 100.32));
    }

    static {
        memberStore.add(new Member(1, "wt1", 13));
        memberStore.add(new Member(2, "wt2", 13));
        memberStore.add(new Member(3, "wt3", 12));
        memberStore.add(new Member(4, "wt4", 12));
    }
}
